home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group00b.txt
/
000142_icon-group-sender_Fri Nov 3 12:32:40 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2001-01-03
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id eA3JWTQ05835
for icon-group-addresses; Fri, 3 Nov 2000 12:32:29 -0700 (MST)
Message-Id: <200011031932.eA3JWTQ05835@baskerville.CS.Arizona.EDU>
X-Sender: whm@mail.mse.com
Date: Fri, 03 Nov 2000 10:49:53 -0700
To: icon-group@cs.arizona.edu
From: "William H. Mitchell" <whm@mse.com>
Subject: Re: How to "declare" a string?
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 739
At 07:49 PM 11/2/00 -0600, Gordon Peterson wrote:
>
>No. All variables default (in the absence of a prior declaration to the
>contrary in some specific situations like the unassigned elements of tables
>where I think you can specify a different default) to be a null string.
Since
>that is the default value, assigning it a (redundant) null string as the
value
>won't change anything.
One minor correction here: uninitialized variables have the null value
(&null), not the null string ("").
Referencing table keys for which no value has been stored produces the null
value unless the table was created with a default initial value. Example:
t := table()
x := t["a"] # x gets &null
t := table(1)
x := t["a"] # x gets 1